﻿<script type="text/template" id="menu-form-template">
    <div id="menu-form-error" class="error"></div>
    <form id="dept-form" onsubmit="return false;">
        <input type="hidden" name="Node" id="Node" value="<%= model.Node %>" />
        <input type="hidden" name="ParenId" id="ParenId" value="<%= model.ParenId %>" />
        <ul class="idata-form">
            <li>
                <span class="idata-form-title">
                    <%= jsResources.lang.ManageSystemMenu_Name %>    
                </span>
                <span>
                    <input type="text" name="Name" id="Name" required value="<%= model.Name %>"/>
                </span>
            </li>            
            <li>
                <span class="idata-form-title">
                    <%= jsResources.lang.ManageSystemMenu_Description %>    
                </span>
                <span>
                    <textarea name="Description" id="Description"><%= model.Description %></textarea>
                </span>
            </li>
            <li>
                <span class="idata-form-title">
                    <%= jsResources.lang.ManageSystemMenu_IsActive %>    
                </span>
                <span>
                    <input type="checkbox" name = "IsActive" id="IsActive" <%= model.IsActive == true ? 'checked="checked"' : '' %> />
                </span>
            </li>
            <li>
                <span class="idata-form-title">
                    <%= jsResources.lang.ManageSystemMenu_IsShow %>    
                </span>
                <span>
                    <input type="checkbox" name = "IsShow" id="IsShow" <%= model.IsShow == true ? 'checked="checked"' : '' %> />
                </span>
            </li>
        </ul>
    </form>
</script>